package com.example.springboot0507.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;

import java.time.LocalDateTime;

/**
 * @Author 王博
 * @DateTime 2025-05-08 13:27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    @NumberFormat(pattern = "#,###")
    private Integer id;
    private String name;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birth;
}
